package com.yxq.mdt.app.modules.pm.presenter;

import com.yxq.mdt.app.base.ibase.IBaseContract;
import com.yxq.mdt.app.modules.goodsdetail.bean.GoodsDetailBean;
import com.yxq.mdt.app.modules.market.bean.MallGoodsBean;
import com.yxq.mdt.app.modules.pm.bean.GoodsCommentBean;

public interface IGoodsContract extends IBaseContract {

    interface View extends IBaseView {

        void onLoadSuccess(GoodsDetailBean goodsDetailBean);

        void onLoadFailed(String err);

        void onLoadRecommendSuccess(MallGoodsBean mallGoodsBean);

        void onLoadRecommendFailed(String err);

        void onAddSuccess(String err);

        void onAddFailed(String err);

        void onRemoveSuccess(String err);

        void onRemoveFailed(String err);

        void onLoadCommentSuccess(GoodsCommentBean goodsCommentBean);

        void onLoadCommentFailed(String err);

        void onAddCartSuccess(String result);

        void onAddCartFailed(String err);
    }


    interface Presenter extends IBasePresenter {

        void getGoods(String id);

    }
}
